CLS

Syntax

Screen:CLS()

Description

Clears all the graphics drawn/printed on the primary image buffer.

Note

Be sure to use Screen:Render() after using this function.

Example

function main() {
  Screen:Show()
 
  Screen:PrintString("Mabuhay!")  //print the message
 
  Screen:CLS()  //erase the message on the viewing Screen
 
  Screen:Render()  //display the message to the viewing Screen
 
  Konsol:Delay(1000)  //pause for a second to read "nothing"
}
www.konsolscript.org
© 2005-2011 KonsolScript Labs | All Rights Reversed | Licensed under GNU GPL | Designed by Mj Mendoza IV
http://www.sourceforge.net